﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
    public class DonHangTrangThaiDonHangObj
    {
        private string _DonHangTrangThaiDonHangID;

        public string DonHangTrangThaiDonHangID
        {
            get { return _DonHangTrangThaiDonHangID; }
            set { _DonHangTrangThaiDonHangID = value; }
        }
        private string _TrangthaiID;

        public string TrangthaiID
        {
            get { return _TrangthaiID; }
            set { _TrangthaiID = value; }
        }
        private string _DondathangID;

        public string DondathangID
        {
            get { return _DondathangID; }
            set { _DondathangID = value; }
        }
        private string _Ngaythaydoi;

        public string Ngaythaydoi
        {
            get { return _Ngaythaydoi; }
            set { _Ngaythaydoi = value; }
        }
        private string _NhanvienID;

        public string NhanvienID
        {
            get { return _NhanvienID; }
            set { _NhanvienID = value; }
        }
        public DonHangTrangThaiDonHangObj SetValuesFromDataReader(IDataReader reader)
        {
            DonHangTrangThaiDonHangObj obj = new DonHangTrangThaiDonHangObj();
            obj.DonHangTrangThaiDonHangID = (reader["DonHangTrangThaiDonHangID"] is DBNull) ? String.Empty : reader["DonHangTrangThaiDonHangID"].ToString();
            obj.TrangthaiID = (reader["TrangthaiID"] is DBNull) ? String.Empty : reader["TrangthaiID"].ToString();
            obj.DondathangID = (reader["DondathangID"] is DBNull) ? String.Empty : reader["DondathangID"].ToString();
            obj.Ngaythaydoi = (reader["Ngaythaydoi"] is DBNull) ? String.Empty : reader["Ngaythaydoi"].ToString();
            obj.NhanvienID = (reader["NhanvienID"] is DBNull) ? String.Empty : reader["NhanvienID"].ToString();
            return obj;
        }
    }
}
